package com.cargohu.aishouyu.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cargohu.aishouyu.system.entity.SysConfig;
import com.cargohu.aishouyu.system.query.SysConfigQuery;
import com.cargohu.aishouyu.system.vo.SysConfigVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 参数配置表 Mapper 接口
 *
 * @author yww
 * @since 2023-11-29
 */
@Mapper
public interface SysConfigMapper extends BaseMapper<SysConfig> {

    /**
     * 参数配置表详情
     *
     * @param configId
     * @return
     */
    SysConfigVo getSysConfigById(Long configId);

    /**
     * 参数配置表详情
     *
     * @param configKey
     * @return
     */
    SysConfigVo getSysConfigByKey(String configKey);

    /**
     * 参数配置表分页列表
     *
     * @param sysConfigQuery
     * @return
     */
    List<SysConfigVo> getSysConfigList(SysConfigQuery sysConfigQuery);

}
